package com.jingmi.jingmiliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jingmi.common.utils.PageUtils;
import com.jingmi.jingmiliving.commodity.entity.CategoryEntity;
import com.jingmi.jingmiliving.commodity.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品分类表
 *
 * @author jingmi
 * @email 2771368705@qq.com
 * @date 2023-09-30 12:08:03
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    List<CategoryEntity> listTree();

    Long[] getcascaderCategoryIds(Long id);

    List<CategoryEntity> getLevel1Categorys();
    Map<String, List<Catalog2Vo>> getCatalogJson();
}

